package com.chinasoft.sql;

import org.apache.ibatis.jdbc.SQL;

public class SqlTest {

    public static void main(String[] args) {
        String sql = getSql();
        System.out.println("sql = " + sql);
    }
    public static String getSql1(){
        String sql = "select * from student";
        return sql;
    }

    public static String getSql(){
        String sql = new SQL(){
            {
                SELECT("*");
                FROM("student");
            }
        }.toString();
        return sql;
    }
}
